package com.zzi.Spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;

import com.entity.Student;

@Configuration
@ComponentScans(
		value = {
				@ComponentScan(value="com.domain",includeFilters = {
				},useDefaultFilters = false)	
		}
		)

public class MainConfig {
	
	@Bean("student")
	public Student student(){
		Student student = new Student();
		student.setSage(12);
		student.setSname("周六");
		
		return student;
	}

}
